package com.piggy.logi.sys.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 客服问题登记视图对象 logi_kefu_issue
 *
 * @author piggy
 * @date 2023-10-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@ApiModel("客服问题登记视图对象")
public class LogiKefuIssueExtVo extends LogiKefuIssueVo {

	private static final long serialVersionUID = 1L;

	/** 登记网点名称 */
	@ApiModelProperty("登记网点名称")
	private String branchDeptName;

	/** 操作网点名称 */
	@ApiModelProperty("操作网点名称")
	private String issueDeptName;

	/** 关联角色id */
	@ApiModelProperty("关联用户名称")
	private String userName;

	/** 回复列表 **/
	@ApiModelProperty("回复列表")
	private List<LogiKefuIssueReply> replyList;

	@Data
	public static class LogiKefuIssueReply implements Serializable {
		private static final long serialVersionUID = 1L;

		@ApiModelProperty("回复人")
		private String replyUser;

		@ApiModelProperty("回复时间")
		@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
		@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
		private Date replyDate;

		@ApiModelProperty("回复内容")
		private String replyContent;

	}
}
